//
//  CourseListManager.m
//  JPWords
//
//  Created by 梁淑婷 on 2024/6/23.
//

#import "CourseListManager.h"

@implementation CourseListManager

- (NSString *)methodName{
    return @"/system/user/course/list";
}

- (JPAPIManagerRequestType)requestType{
    return JPAPIManagerRequestTypeGET;
}

- (NSDictionary *)paramsForApi:(JPAPIBaseManager *)manager{
    NSMutableDictionary *dict = @{}.mutableCopy;
    NSString *userId = [[NSUserDefaults standardUserDefaults]objectForKey:@"userId"];
    dict[@"userId"] = userId;
    dict[@"bookId"] = self.bookId;
    return dict;
}

@end
